package murraco.dto;

import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import murraco.model.Role;

import javax.persistence.ElementCollection;
import javax.persistence.FetchType;

@Data
public class UserResponseDTO {

  private String id;

  private String loginCode;

  private String name;

  private String password;

  private String studentNum;

  private Integer borrowStatus;

  private String bicycleNum; 

  private String token;

  private String phone;

  @ElementCollection(fetch = FetchType.EAGER)
  List<Role> roles;
}
